﻿// this function for Register User
function ShowDialog() {
    var url = "/Home/Register";
    $.ajaxSetup({ cache: false });
    $('#newRegistration').empty();
    $('#newRegistration').load(url, function () {
        $("#newRegistration").html(this.innerHTML); return;
    });
}

function ShowRegister() {
    var url = "/Home/Register";
    $.ajaxSetup({ cache: false });
    $('#newRegistrationFooter').empty();
    $('#newRegistrationFooter').load(url, function () {
        $("#newRegistrationFooter").html(this.innerHTML); return;
    });
}
// this function for Submit form
//$("#SubmitLogin").on("click", function () {
//    var testfrom = $("#LoginFrom").validate({
//        submitHandler: postData(),
//        rules: {
//            UserLogin: { required: true },
//            UserPassword: { required: true }
//        }
//    });
//    return false;
//});